<template>
    <div @click=getNameHandler(name) v-for="(item,index) of names" :key="index">
        {{item}}

    </div>
</template>

<script>
export default {
    setup() {
        const names = ["a", "b", "c"];

        const getNameHandler = (name) => {
            console.log(name);
        };

        return {
            names,
            getNameHandler
        };
    }
}
</script>

<style lang="scss" scoped>

</style>